FROM mysql:5.7

COPY ./entry-point.sh /entry-point.sh
COPY ./setup/ /tmp/setup

RUN chmod -R 777 /docker-entrypoint-initdb.d
RUN chmod -R 777 /etc/mysql/conf.d
RUN chown -R mysql:mysql /tmp/setup

ENTRYPOINT ["/entry-point.sh"]

